/**
 * 
 
ajaxDb = function()
{
	$jabezPHP('#teste').ajaxRequest({query: 'EngenhariaReversa/selectDb/'+$('#driver').val()+'/'+$('#user').val()+'/'+$('#password').val()+'/'+$('#server').val(), 
	callBacks: {'success': 'functionCallback'}, options: ['sendAll'], debug: true});
}
*/
$jabezPHP(document).ready(function(){
	$jabezPHP("a[rel='history']").click(function(){
	
				//alert('teste');
				//$jabezPHP('#db').ajaxRequest({query: 'EngenhariaReversa/selectDb/', callBacks: {'success': 'functionCallback'}, options: ['returnOfController', 'noLayout'], debug: true});
				$jabezPHP('#tblPrincipal').ajaxRequest({query: 'Aluno/paginate/2', callBacks: {'success': 'functionCallback'}, options: ['returnOfController', 'noLayout'], debug: true});
				
			});
        });
		/*
jsPaginate = function(){

	$jabezPHP('#tblPrincipal').ajaxRequest({query: 'Tcc.Aluno/paginate/', callBacks: {'success': 'functionCallback'}, options: ['returnOfController', 'noLayout'], debug: true});
	
}
*/	
functionCallback = function(ret){
	
	//alert(ret);
	//$jabezPHP('#tblPrincipal').html("");
	//$jabezPHP('#tblPrincipal').html(ret.response.data);
	$jabezPHP('#teste').html("");
	$jabezPHP('#teste').html(ret.response.data);
	//alert(ret.response.data);
	};

//$AjaxResponse = parent::getAjaxResponse(TRUE, NULL);
//$AjaxResponse->add('response', $content)
//$AjaxResponse->add('nomedavariavel', 'retorno');